package com.logwire.dto.query;import com.logwire.utils.LocalDateUtil;import lombok.Data;import org.springframework.format.annotation.DateTimeFormat;import javax.validation.constraints.NotNull;import java.time.LocalDate;import java.util.Date;@Datapublic class ReportQuery {	@NotNull	@DateTimeFormat(pattern = "yyyy-MM-dd")	private Date startDate;	@NotNull	@DateTimeFormat(pattern = "yyyy-MM-dd")	private Date endDate;	public Date getEndDate() {		LocalDate localDate = LocalDateUtil.dateTolocalDate(endDate).minusDays(-1);		return LocalDateUtil.localDateTodate(localDate);	}}